<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::Tree::RuleNode</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (R)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span> &raquo; <span class='title'><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Tree</a></span>
     &raquo; 
    <span class="title">RuleNode</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/Tree/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/Tree/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::Tree::RuleNode 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Node</a></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Node</a></li>
          
            <li class="next">Sass::Tree::RuleNode</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>A static node reprenting a CSS rule.</p>

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Sass::Tree</a></li>
    
  </ul>

</div>
  <h2>Constant Summary</h2>
  


  
  
  
  
  
  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#group_end-instance_method" title="#group_end (instance method)">- (Boolean) <strong>group_end</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">Whether or not this rule is the last rule in a nested group.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#parsed_rules-instance_method" title="#parsed_rules (instance method)">- (Selector::CommaSequence) <strong>parsed_rules</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The CSS selector for this rule, without any unresolved interpolation but with parent references still intact.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#resolved_rules-instance_method" title="#resolved_rules (instance method)">- (Selector::CommaSequence) <strong>resolved_rules</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The CSS selector for this rule, without any unresolved interpolation or parent references.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#rule-instance_method" title="#rule (instance method)">- (Array&lt;String, Sass::Script::Node&gt;) <strong>rule</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The CSS selector for this rule, interspersed with <tt><a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a></tt>s representing <code>#{}</code>-interpolation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#stack_trace-instance_method" title="#stack_trace (instance method)">- (Array&lt;String&gt;) <strong>stack_trace</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The stack trace.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#tabs-instance_method" title="#tabs (instance method)">- (Fixnum) <strong>tabs</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">How deep this rule is indented relative to a base-level rule.</span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#%3D%3D-instance_method" title="#== (instance method)">- (Boolean) <strong>=</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Compares the contents of two rules.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#add_rules-instance_method" title="#add_rules (instance method)">- <strong>add_rules</strong>(node) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Adds another <tt><a href="" title="Sass::Tree::RuleNode (class)">RuleNode</a></tt>&#8217;s rules to this one&#8217;s.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#continued%3F-instance_method" title="#continued? (instance method)">- (Boolean) <strong>continued?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Whether or not this rule is continued on the next line.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#debug_info-instance_method" title="#debug_info (instance method)">- ({#to_s =&gt; #to_s}) <strong>debug_info</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">A hash that will be associated with this rule in the CSS document if the <a href="file.SASS_REFERENCE.html#debug_info-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#debug_info-option" title="&lt;code&gt;:debug_info&lt;/code&gt; option"><code>:debug_info</code> option</a> is enabled.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#filename%3D-instance_method" title="#filename= (instance method)">- <strong>filename</strong>(filename) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">If we&#8217;ve precached the parsed selector, set the filename on it, too.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (RuleNode) <strong>initialize</strong>(rule) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">A new instance of RuleNode.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#invisible%3F-instance_method" title="#invisible? (instance method)">- (Boolean) <strong>invisible?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">A rule node is invisible if it has only placeholder selectors.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#line%3D-instance_method" title="#line= (instance method)">- <strong>line</strong>(line) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">If we&#8217;ve precached the parsed selector, set the line on it, too.</span>
  
</li>

    
  </ul>

  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Node</a></h3>
  <p class="inherited"><a href="Node.html#%3C%3C-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#%3C%3C-instance_method" title="Sass::Tree::Node#<< (method)">#<<</a>, <a href="Node.html#balance-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#balance-instance_method" title="Sass::Tree::Node#balance (method)">#balance</a>, <a href="Node.html#bubbles%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#bubbles%3F-instance_method" title="Sass::Tree::Node#bubbles? (method)">#bubbles?</a>, <a href="Node.html#deep_copy-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#deep_copy-instance_method" title="Sass::Tree::Node#deep_copy (method)">#deep_copy</a>, <a href="Node.html#each-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#each-instance_method" title="Sass::Tree::Node#each (method)">#each</a>, <a href="Node.html#inspect-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#inspect-instance_method" title="Sass::Tree::Node#inspect (method)">#inspect</a>, <a href="Node.html#style-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#style-instance_method" title="Sass::Tree::Node#style (method)">#style</a>, <a href="Node.html#to_s-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_s-instance_method" title="Sass::Tree::Node#to_s (method)">#to_s</a>, <a href="Node.html#to_sass-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_sass-instance_method" title="Sass::Tree::Node#to_sass (method)">#to_sass</a>, <a href="Node.html#to_scss-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_scss-instance_method" title="Sass::Tree::Node#to_scss (method)">#to_scss</a></p>

  <div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::Tree::RuleNode (class)">RuleNode</a></tt>) <strong>initialize</strong>(rule) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A new instance of RuleNode</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;String, <a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a>&gt;</tt>)</span>
      
      
        <span class='name'>rule</span>
      
      
      
        &mdash;
        The CSS rule. See <tt><a href="#rule-instance_method" title="Sass::Tree::RuleNode#rule (method)">#rule</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


62
63
64
65
66
67
68</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 62</span>

def initialize(rule)
  merged = Sass::Util.merge_adjacent_strings(rule)
  @rule = Sass::Util.strip_string_array(merged)
  @tabs = 0
  try_to_parse_non_interpolated_rules
  super()
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id="group_end=-instance_method"></span>
      <span id="group_end-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="group_end-instance_method">
  
    - (<tt>Boolean</tt>) <strong>group_end</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Whether or not this rule is the last rule in a nested group. This is only set in a CSS tree.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


51
52
53</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 51</span>

def group_end
  @group_end
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="parsed_rules=-instance_method"></span>
      <span id="parsed_rules-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="parsed_rules-instance_method">
  
    - (<tt><a href="CommaSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></tt>) <strong>parsed_rules</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The CSS selector for this rule, without any unresolved interpolation but with parent references still intact. It&#8217;s only set once <tt>Tree::Node#perform</tt> has been called.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="CommaSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


26
27
28</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 26</span>

def parsed_rules
  @parsed_rules
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="resolved_rules=-instance_method"></span>
      <span id="resolved_rules-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="resolved_rules-instance_method">
  
    - (<tt><a href="CommaSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></tt>) <strong>resolved_rules</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The CSS selector for this rule, without any unresolved interpolation or parent references. It&#8217;s only set once <tt><a href="Cssize.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Visitors/Cssize.html" title="Sass::Tree::Visitors::Cssize (class)">Tree::Visitors::Cssize</a></tt> has been run.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="CommaSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


33
34
35</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 33</span>

def resolved_rules
  @resolved_rules
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="rule=-instance_method"></span>
      <span id="rule-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="rule-instance_method">
  
    - (<tt>Array&lt;String, <a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a>&gt;</tt>) <strong>rule</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The CSS selector for this rule, interspersed with <tt><a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a></tt>s representing <code>#{}</code>-interpolation. Any adjacent strings will be merged together.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;String, <a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a>&gt;</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


18
19
20</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 18</span>

def rule
  @rule
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="stack_trace=-instance_method"></span>
      <span id="stack_trace-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="stack_trace-instance_method">
  
    - (<tt>Array&lt;String&gt;</tt>) <strong>stack_trace</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The stack trace. This is only readable in a CSS tree as it is written during the perform step and only when the :trace_selectors option is set.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


58
59
60</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 58</span>

def stack_trace
  @stack_trace
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="tabs=-instance_method"></span>
      <span id="tabs-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="tabs-instance_method">
  
    - (<tt>Fixnum</tt>) <strong>tabs</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>How deep this rule is indented relative to a base-level rule. This is only greater than 0 in the case that:</p>

<ul>
<li>This node is in a CSS tree</li>

<li>The style is :nested</li>

<li>This is a child rule of another rule</li>

<li>The parent rule has properties, and thus will be rendered</li>
</ul>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


45
46
47</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 45</span>

def tabs
  @tabs
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="==-instance_method">
  
    - (<tt>Boolean</tt>) <strong>==</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Compares the contents of two rules.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Object</tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The object to compare with
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
        &mdash;
        Whether or not this node and the other object are the same
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


87
88
89</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 87</span>

def ==(other)
  self.class == other.class && rule == other.rule && super
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="add_rules-instance_method">
  
    - <strong>add_rules</strong>(node) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Adds another <tt><a href="" title="Sass::Tree::RuleNode (class)">RuleNode</a></tt>&#8217;s rules to this one&#8217;s.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Tree::RuleNode (class)">RuleNode</a></tt>)</span>
      
      
        <span class='name'>node</span>
      
      
      
        &mdash;
        The other node
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


94
95
96
97
98</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 94</span>

def add_rules(node)
  @rule = Sass::Util.strip_string_array(
    Sass::Util.merge_adjacent_strings(@rule + ["\n"] + node.rule))
  try_to_parse_non_interpolated_rules
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="continued?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>continued?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Whether or not this rule is continued on the next line</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
        &mdash;
        Whether or not this rule is continued on the next line
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


101
102
103
104</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 101</span>

def continued?
  last = @rule.last
  last.is_a?(String) && last[-1] == ?,
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="debug_info-instance_method">
  
    - (<tt>{#to_s =&gt; #to_s}</tt>) <strong>debug_info</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A hash that will be associated with this rule in the CSS document if the <a href="file.SASS_REFERENCE.html#debug_info-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#debug_info-option" title="&lt;code&gt;:debug_info&lt;/code&gt; option"><code>:debug_info</code> option</a> is enabled. This data is used by e.g. <a href="javascript:if(confirm(%27https://addons.mozilla.org/en-US/firefox/addon/103988  \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher).  \n\nDo you want to open it from the server?%27))window.location=%27https://addons.mozilla.org/en-US/firefox/addon/103988%27" tppabs="https://addons.mozilla.org/en-US/firefox/addon/103988">the FireSass Firebug extension</a>.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>{#to_s =&gt; #to_s}</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


111
112
113
114</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 111</span>

def debug_info
  {:filename => filename && ("file://" + URI.escape(File.expand_path(filename))),
   :line => self.line}
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="filename=-instance_method">
  
    - <strong>filename=</strong>(filename) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>If we&#8217;ve precached the parsed selector, set the filename on it, too.</p>

  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


77
78
79
80</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 77</span>

def filename=(filename)
  @parsed_rules.filename = filename if @parsed_rules
  super
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="invisible?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>invisible?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A rule node is invisible if it has only placeholder selectors.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


117
118
119</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 117</span>

def invisible?
  resolved_rules.members.all? {|seq| seq.has_placeholder?}
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="line=-instance_method">
  
    - <strong>line=</strong>(line) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>If we&#8217;ve precached the parsed selector, set the line on it, too.</p>

  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


71
72
73
74</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb', line 71</span>

def line=(line)
  @parsed_rules.line = line if @parsed_rules
  super
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:57 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>